import Layout from '@/layouts'

/**
 * 异步:动态路由  商城管理
 */
const OrderRoute = {
	path: '/order',
	component: Layout,
	name: '订单管理',
	icon: 'order',
	meta: { 
		title: '订单管理' ,
		icon: 'order'
	},
	authCode: 'order',
	children:[
		{
			path: 'exchange',
			icon: 'exchange',
			component: () => import('@/views/modules/activity/prefecture/list'),
			name: '兑换订单',
			meta: { 
				title: '兑换订单',
				icon: 'exchange'
			},
			authCode: 'order:exchange',
		},{
			path: 'recharge',
			icon: 'recharge',
			component: () => import('@/views/modules/activity/prefecture/list'),
			name: '充值订单',
			meta: { 
				title: '充值订单',
				icon: 'recharge'
			},
			authCode: 'order:recharge',
		},{
			path: 'trade',
			icon: 'trade',
			component: () => import('@/views/modules/oms/order/list'),
			name: '交易订单',
			meta: { 
				title: '交易订单',
				icon: 'trade'
			},
			authCode: 'order:trade',
		},{
			path: 'assemble',
			icon: 'assemble',
			component: () => import('@/views/modules/activity/prefecture/list'),
			name: '拼团订单',
			meta: { 
				title: '拼团订单',
				icon: 'assemble'
			},
			authCode: 'order:assemble',
		},
	]
}
export default OrderRoute